<%@page import="com.zch.news.entity.User"%>
<%@page import="com.zch.news.service.impl.UserServiceImpl"%>
<%@page import="com.zch.news.service.UserService"%>
<%@ page language="Java" contentType="text/html;charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>用户和管理员密码修改</title>        
  <meta http-equiv="content-Type" content="text/html;charset=utf-8"> 
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="this is a page">
  <link rel="stylesheet" href="./css/..." type="text/css">
  <script language="javascript" type="text/javascript" src="./js/..."></script> 
 </head>
 <body>
 	<%
 		String phone = request.getParameter("userPhone");
 		UserService us = new UserServiceImpl();
 		User user = us.getUserByPhone(phone);
 	%>
 	<form action="NewsServlet?method=updateUser" method="post">
 		用户id:<input type="text" name="userId" value="<%=user.getId() %>" readonly="readonly"><br>
 		用户名：<input type="text" name="userPhone" value="<%=user.getPhone() %>" readonly="readonly"><br>
 		用户新密码：<input type="text" name="userPassword" placeholder="<%=user.getPassword() %>" autofocus="autofocus"><br>
 		<input type="submit" value="确认更改">
 	</form>
 </body>
</html>